const { Sequelize } = require('sequelize')
const { DATABASE_NAME, DATABASE_USER, DATABASE_PWD, DATABASE_HOST, DATABASE_TYPE } = require('../config/config.default')
// 分别传递参数 (其它数据库)
const seq = new Sequelize(DATABASE_NAME, DATABASE_USER, DATABASE_PWD, {
  host: DATABASE_HOST,
  dialect: DATABASE_TYPE
})
// try {
//   seq.authenticate()
//   console.log('数据库连接成功');
// } catch (error) {
//   console.log(error);
// }
module.exports = seq